import service from '@/utils/request'

const TaskApi = {
  // ----------------任务大厅管理-----------------
  listTask:function(data){
    return service.get('taskInfo/page', {params:data})
  },
  addTask:function(data){
    return service.post('taskInfo', data)
  },
  editTask:function(data){
    return service.put('taskInfo', data)
  },
  deleteTask:function(data){
    return service.put('taskInfo/delete', data)
  },
  getTaskInfo(data){
    return service.get('taskInfo', {params:data})
  },
  listIdName(data){
    return service.get('taskInfo/listIdName', {params:data})
  },
  setTaskTimeout(data){
    return service.put("taskInfo/setTaskTimeout",data)
  }
}

export default TaskApi
